//using System.Diagnostics;
//using System.Windows.Forms;
//using FireStarterModeller.UI;
//using Habanero.UI.Base;
//using Habanero.UI.Win;
//using NUnit.Framework;

//namespace FireStarterModeller.Test.UI
//{
//    [TestFixture]
//    public class TestExtendedComboBox : TestBase
//    {
//        private static IControlFactory GetControlFactory()
//        {
//            return GlobalUIRegistry.ControlFactory;
//        }

//        [Test]
//        public void Test_Layout()
//        {
//            //--------------- Set up test pack-------------------
//            IControlFactory controlFactory = GetControlFactory();
//            //--------------- Test Preconditions ----------------

//            //--------------- Execute Test ----------------------
//            ExtendedComboBox extendedComboBox = new ExtendedComboBox(controlFactory);
//            //--------------- Test Result -----------------------
//            Assert.AreEqual(2, extendedComboBox.Controls.Count);
//            Control control1 = extendedComboBox.Controls[0];
//            Control control2 = extendedComboBox.Controls[1];
//            Assert.IsInstanceOfType(typeof(IComboBox), control1);
//            Assert.IsInstanceOfType(typeof(IButton), control2);
//            Assert.AreEqual("...", control2.Text);
//            Assert.AreEqual(0, control1.Left);
//            Assert.LessOrEqual(control1.Width, control2.Left);
//            Assert.GreaterOrEqual(extendedComboBox.Width, control2.Left + control2.Width);
//        }

//        [Test]
//        public void Test_GetCombo()
//        {
//            //--------------- Set up test pack ------------------
//            IControlFactory controlFactory = GetControlFactory();
//            ExtendedComboBox extendedComboBox = new ExtendedComboBox(controlFactory);
//            //--------------- Test Preconditions ----------------

//            //--------------- Execute Test ----------------------
//            IComboBox comboBox = extendedComboBox.ComboBox;
//            //--------------- Test Result -----------------------
//            Assert.IsNotNull(comboBox);
//        }

//        [Test]
//        public void Test_GetButton()
//        {
//            //--------------- Set up test pack ------------------
//            IControlFactory controlFactory = GetControlFactory();
//            ExtendedComboBox extendedComboBox = new ExtendedComboBox(controlFactory);
//            //--------------- Test Preconditions ----------------

//            //--------------- Execute Test ----------------------
//            IButton button = extendedComboBox.Button;
//            //--------------- Test Result -----------------------
//            Assert.IsNotNull(button);
//        }
//    }

//}